<?php

namespace App\V3\Api\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class CreateExpressTemplatesModel extends Model
{
    use HasFactory;
    protected $table = 'zt_express_templates';
    protected $primaryKey = 'id';
    public $timestamps = false;
    static public function addZtExpressTemplates($data){

        return CreateExpressTemplatesModel::insertGetId($data);
    }

    static public function updZtExpressTemplates($condition,$data){

        return CreateExpressTemplatesModel::where($condition)->update($data);
    }

    static public function getZtExpressTemplateInfo($condition){

        return CreateExpressTemplatesModel::where($condition)->first();
    }
}
